package com.zd.wechatPlatform.common.enums;

public enum FeebackMsgTypeEnum {
	text(1, "text"),
	image(2, "image"),
	voice(3, "voice"),
	video(4, "video"),
	music(5, "music"),
	news(6, "news");

	private int key;
	private String value;

	private FeebackMsgTypeEnum(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public static FeebackMsgTypeEnum get(int key) {
		for (FeebackMsgTypeEnum feebackMsgType : FeebackMsgTypeEnum.values()) {
			if (feebackMsgType.getKey() == key) {
				return feebackMsgType;
			}
		}
		return null;
	}
}
